package com.Entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * UsersInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "usersInfo", catalog = "smartsofa")
public class UsersInfo implements java.io.Serializable {

	// Fields

	private Integer userId;
	private Integer deviceId;
	private String userName;
	private String password;
	private short sex;
	private Date birthday;
	private String cellphone;
	private String userImg;
	private Float weight;
	private Float height;
	private Float bmi;
	private String interestTag;

	// Constructors

	/** default constructor */
	public UsersInfo() {
	}

	/** full constructor */
	public UsersInfo(Integer deviceId, String userName, String password,
			short sex, Date birthday, String cellphone, String userImg,
			Float weight, Float height, Float bmi, String interestTag) {
		this.deviceId = deviceId;
		this.userName = userName;
		this.password = password;
		this.sex = sex;
		this.birthday = birthday;
		this.cellphone = cellphone;
		this.userImg = userImg;
		this.weight = weight;
		this.height = height;
		this.bmi = bmi;
		this.interestTag = interestTag;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "UserID", unique = true, nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "DeviceID")
	public Integer getDeviceId() {
		return this.deviceId;
	}

	public void setDeviceId(Integer deviceId) {
		this.deviceId = deviceId;
	}

	@Column(name = "UserName", length = 200)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "Password", length = 200)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "Sex")
	public short getSex() {
		return this.sex;
	}

	public void setSex(short sex) {
		this.sex = sex;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "Birthday", length = 10)
	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Column(name = "Cellphone", length = 11)
	public String getCellphone() {
		return this.cellphone;
	}

	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}

	@Column(name = "userImg", length = 200)
	public String getUserImg() {
		return this.userImg;
	}

	public void setUserImg(String userImg) {
		this.userImg = userImg;
	}

	@Column(name = "weight", precision = 5, scale = 1)
	public Float getWeight() {
		return this.weight;
	}

	public void setWeight(Float weight) {
		this.weight = weight;
	}

	@Column(name = "height", precision = 5, scale = 1)
	public Float getHeight() {
		return this.height;
	}

	public void setHeight(Float height) {
		this.height = height;
	}

	@Column(name = "bmi", precision = 4)
	public Float getBmi() {
		return this.bmi;
	}

	public void setBmi(Float bmi) {
		this.bmi = bmi;
	}

	@Column(name = "interestTag", length = 4000)
	public String getInterestTag() {
		return this.interestTag;
	}

	public void setInterestTag(String interestTag) {
		this.interestTag = interestTag;
	}

}